package com.xinghen.scheduler.event;

import com.xinghen.scheduler.client.domain.RmsJobParam;
import com.xinghen.scheduler.client.domain.RmsJobResult;

/**
 * @author xinghen
 * @ClassName: IRmsJobEvent
 * @Package: com.xinghen.scheduler
 * @Description IRmsJobEvent
 * @create 2017-12-08 17:23
 */
public interface IRmsJobEvent {

    /**
     * hasRunning
     *
     * @param rmsJobParam rmsJobParam
     * @return boolean
     */
    boolean hasRunning(RmsJobParam rmsJobParam);

    /**
     * 描述 : save
     *
     * @param param  param
     * @param result result
     */
    void save(RmsJobParam param, RmsJobResult result);

    /**
     * 描述 : delete
     *
     * @param fireInstanceId fireInstanceId
     */
    void delete(String fireInstanceId);

}
